package com.example.certificate.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.example.certificate.common.SuperEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author hao
 * @since 2022-03-10 12:25:41
 */
@Getter
@Setter
@TableName("order_cart")
@ApiModel(value = "OrderCart对象", description = "")
public class OrderCart extends SuperEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    @TableField("user_id")
    private String userId;

    @TableField("product_info_id")
    private String productInfoId;

    @TableField("product_amount")
    private Integer productAmount;

    @TableField("price")
    private Float price;

    @TableField("tradeName")
    private String tradeName;

    @TableField(exist = false)
    private Boolean checked;

    @ApiModelProperty(value = "商品价格")
    @TableField(exist = false)
    private float tradePrice;

    @ApiModelProperty(value = "商品图片")
    @TableField(exist = false)
    private String imageUrl;

    @TableField("total_price")
    private float totalPrice;

    @TableField(exist = false)
    private String tradeDescribe;

    @TableField(exist = false)
    private Boolean isMember;
}
